package one.stand.util;

/**
 * @author cjr
 */
public class RequestContextHolder {
    private static final ThreadLocal<RequestContext> requestContextHolder = new ThreadLocal<>();

    public static void setRequestContext(RequestContext requestContext) {
        requestContextHolder.set(requestContext);
    }

    public static RequestContext getRequestContext() {
        return requestContextHolder.get();
    }

    public static void reset() {
        requestContextHolder.remove();
    }
}
